package com.bank.svc;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.bank.dao.BankAdminDao;
import com.bank.pojo.BankAdmin;

@Service("bankAdminSvc")
public class BankAdminSvc {
	@Resource(name="bankAdminDao")
	private BankAdminDao bad;
	
	public BankAdmin getAdminById(int id){
		return bad.getAdminById(id);
	}

	public void setBad(BankAdminDao bad) {
		this.bad = bad;
	}
}
